package com.bstek.demo.esasyules;

import org.jeasy.rules.api.Facts;
import org.jeasy.rules.support.composite.UnitRuleGroup;

/**
 * 通过继承UnitRuleGroup 写一个组合接口
 */
public class MyCompositeRule extends UnitRuleGroup {
    public MyCompositeRule() {
        System.out.println("进入性别组合规则...");
        addRule(new FemaleRule());
        addRule(new MaleRule());
    }
}
